package com.ruoyi.Warehouse.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卡牌基本信息表对象 cards
 * 
 * @author ruoyi
 * @date 2025-06-16
 */
public class Cards extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long cardId;

    /**  */
    @Excel(name = "")
    private String cardCode;

    /**  */
    @Excel(name = "")
    private String cardName;

    /**  */
    @Excel(name = "")
    private Long setId;

    /** R/SR/UR/HR/GR等 */
    @Excel(name = "R/SR/UR/HR/GR等")
    private String rarity;

    /** Monster/Spell/Trap */
    @Excel(name = "Monster/Spell/Trap")
    private String cardType;

    /** 属性(仅怪物卡) */
    @Excel(name = "属性(仅怪物卡)")
    private String attribute;

    /** 等级/阶级 */
    @Excel(name = "等级/阶级")
    private Long levelRank;

    /**  */
    @Excel(name = "")
    private Long attack;

    /**  */
    @Excel(name = "")
    private Long defense;

    /** 卡牌效果 */
    @Excel(name = "卡牌效果")
    private String effect;

    /** 市场参考价 */
    @Excel(name = "市场参考价")
    private BigDecimal marketPrice;

    /**  */
    @Excel(name = "")
    private String imageUrl;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }

    public void setCardCode(String cardCode) 
    {
        this.cardCode = cardCode;
    }

    public String getCardCode() 
    {
        return cardCode;
    }

    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }

    public void setSetId(Long setId) 
    {
        this.setId = setId;
    }

    public Long getSetId() 
    {
        return setId;
    }

    public void setRarity(String rarity) 
    {
        this.rarity = rarity;
    }

    public String getRarity() 
    {
        return rarity;
    }

    public void setCardType(String cardType) 
    {
        this.cardType = cardType;
    }

    public String getCardType() 
    {
        return cardType;
    }

    public void setAttribute(String attribute) 
    {
        this.attribute = attribute;
    }

    public String getAttribute() 
    {
        return attribute;
    }

    public void setLevelRank(Long levelRank) 
    {
        this.levelRank = levelRank;
    }

    public Long getLevelRank() 
    {
        return levelRank;
    }

    public void setAttack(Long attack) 
    {
        this.attack = attack;
    }

    public Long getAttack() 
    {
        return attack;
    }

    public void setDefense(Long defense) 
    {
        this.defense = defense;
    }

    public Long getDefense() 
    {
        return defense;
    }

    public void setEffect(String effect) 
    {
        this.effect = effect;
    }

    public String getEffect() 
    {
        return effect;
    }

    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cardId", getCardId())
            .append("cardCode", getCardCode())
            .append("cardName", getCardName())
            .append("setId", getSetId())
            .append("rarity", getRarity())
            .append("cardType", getCardType())
            .append("attribute", getAttribute())
            .append("levelRank", getLevelRank())
            .append("attack", getAttack())
            .append("defense", getDefense())
            .append("effect", getEffect())
            .append("marketPrice", getMarketPrice())
            .append("imageUrl", getImageUrl())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
